/*
 * @Description: 文件操作接口
 * @Autor: HuiSir<273250950@qq.com>
 * @Date: 2020-11-10 16:30:00
 * @LastEditTime: 2020-11-28 12:38:10
 */
const Router = require('@koa/router')
const { Upload, Download, VisitPath } = require('../services/fileOperate') //业务层

// 创建路由实例，设置前缀
const router = new Router({ prefix: '/api/file' })

// 注册路由接口
router
    .post('/avatarUpload', Upload) //头像上传
    .get('/avatarDownload', Download) //头像打包zip下载
    .get('/avatarVisit', VisitPath) //头像访问路径

module.exports = router
